package com.example.adms.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.adms.role.entity.Role;
import com.example.adms.role.vo.RoleMenuTree;

import java.util.List;
import java.util.Map;

public interface RoleMapper extends BaseMapper<Role> {
    List<RoleMenuTree> selectRoleListById(Map<String, Object> map);

    Role selectRoleById(Map<String, Object> map);

    // 根据用户id查角色列表
    List<String> selectRolesById(int id);
}
